﻿using System;

namespace KWatkins.FluentMoqBuilder.Argument
{
	internal sealed class ClassValidation<T> : ArgumentValidation<T>, IClass<T>
		where T : class
	{
		internal ClassValidation(T argument, string parameterName)
			: base(argument, parameterName)
		{
		}
		#region IClass Members
		void IClass<T>.IsNotNull()
		{
			if (Argument == null)
			{
				throw new ArgumentNullException(ParameterName);
			}
		}
		#endregion
	}
}
